var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BaseUI = undefined;
var $2AudioManager = require("AudioManager");
var $2UIManager = require("UIManager");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var exp_BaseUI = /* */function (_cc$Component) {
  function _ctor() {
    var _this4;
    babel_classCallCheck(this, _ctor);
    _this4 = _callSuper(this, _ctor, arguments);
    _this4.uihideCallback = null;
    _this4.opened = false;
    return _this4;
  }
  babel_inherits(_ctor, _cc$Component);
  return babel_createClass(_ctor, [{
    key: "tag",
    get() {
      return this.mTag;
    },
    set(e) {
      this.mTag = e;
    }
  }, {
    key: "onDestroy",
    value: function onDestroy() {
      this.uihideCallback = null;
    }
  }, {
    key: "onEnable",
    value: function onEnable() {
      this.opened = true;
    }
  }, {
    key: "onDisable",
    value: function onDisable() {
      this.opened = false;
      this.uihideCallback && this.uihideCallback();
      this.uihideCallback = null;
    }
  }, {
    key: "onLoad",
    value: function onLoad() {}
  }, {
    key: "onShow",
    value: function onShow() {}
  }, {
    key: "click",
    value: function click(e, t) {
      $2AudioManager.AudioManager.getInstance().playSound("caidan");
    }
  }, {
    key: "close",
    value: function close() {
      $2UIManager.UIManager.getInstance().closeUI(this.mTag);
    }
  }, {
    key: "hide",
    value: function hide() {
      $2UIManager.UIManager.getInstance().hideUI(this.mTag);
    }
  }], [{
    key: "getUrl",
    value: function getUrl() {
      return this.className;
    }
  }, {
    key: "getLayertype",
    value: function getLayertype() {
      return this.layertype;
    }
  }, {
    key: "getMske",
    value: function getMske() {
      return this.isMask;
    }
  }, {
    key: "getAutomatic",
    value: function getAutomatic() {
      return this.automatic;
    }
  }]);
}(cc.Component);
exp_BaseUI.className = "BaseUI";
exp_BaseUI.layertype = $2UIManager.layerType.None;
exp_BaseUI.isMask = true;
exp_BaseUI.automatic = true;
exp_BaseUI = cc__decorate([ccp_ccclass], exp_BaseUI);
exports.BaseUI = exp_BaseUI;